package com.example.keepmesafe.service.impl;

import java.security.Key;

import javax.crypto.Cipher;

import android.database.Cursor;

import com.example.keepmesafe.domain.Tag;
import com.example.keepmesafe.service.AESCrypto;
import com.example.keepmesafe.service.Base64;
import com.example.keepmesafe.service.UtilService;

public class UtilServiceImpl implements UtilService {
	@Override
	public Tag cursorToTag(Cursor cursor) {
		Tag tag = new Tag();
		tag.setId(cursor.getLong(0));
		tag.setTagName(cursor.getString(1));
		tag.setTagUsername(cursor.getString(2));
		tag.setTagPassword(cursor.getString(3));
		return tag;
	}
	
}
